<extend name="./public/operateMain.html" />
<block name="editArea">
<notempty name="zt">
<div class="alert alert-success alert-dismissable">
	<a href="{:U('Inform/index')}" class="close" type="button"
		data-dismiss="alert">&times;</a>
	{$zt}
</div>
</notempty>
<div class="panel panel-primary">
	<div class="panel-heading">
		<span class="glyphicon glyphicon-th-list">&nbsp;</span>
		<b>通知通告</b>
		<a href="{:U('Main/main')}">
			<span class="glyphicon glyphicon-remove"
				style="float: right; color: white"></span>
		</a>
		<div class="row">
			<form class="col-xs-7" action="__URL__/index" method="post">
				<div class="input-group input-group-sm">
					<input type="text" class="form-control" name="keys"
						placeholder="关键字" />
					<div class="input-group-btn">
						<button type="submit" class="btn btn-default">
							<span class="glyphicon glyphicon-search"></span>
						</button>
						<button type="reset" class="btn btn-default">
							<b>清空查询</b>
						</button>
						<a href="__URL__/add" class="btn btn-default">
							<b>发布</b>
						</a>
						<a href="#dctsk" class="btn  btn-default" data-toggle="modal">
							<b>导出</b>
						</a>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="editheight">
		<table
			class="table table-bordered table-hover table-condensed tablenowrap">
			<tr>
				<th data-order-direction='desc' data-order-field='id'>ID</th>
				<th>通知标题</th>
				<th data-order-direction='desc' data-order-field='jzrq'>截止日期</th>
				<th data-order-direction='desc' data-order-field='uname'>发布人</th>
				<th data-order-direction='desc' data-order-field='addtime'>发布时间</th>
				<th data-order-direction='desc' data-order-field='updatetime'>更新时间</th>
				<th>编辑</th>
			</tr>
			<volist id="v" name="list">
			<tr>
				<td>{$v.id}</td>
				<td>{$v.title|msubstr=###,0,20}</td>
				<td>{$v.jzrq|substr=###,0,10}</td>
				<td>{$v.uname}</td>
				<td>{$v.addtime|substr=###,0,10}</td>
				<td>{$v.updatetime|substr=###,0,10}</td>
				<td>
					<a href="__URL__/edit/id/{$v['id']}" class="btn btn-xs btn-primary">编辑</a>
					<a href="#dctsk{$v.id}" data-toggle="modal"
						class="btn btn-xs btn-primary" >删除</a>
					<div id="dctsk{$v.id}" class="modal">
						<div class="modal-dialog" style="width: 350px">
							<div class="modal-content">
								<div class="modal-header">
									<button class="close" data-dismiss="modal">&times;</button>
									<h4 class="modal-title">
										<span class="glyphicon glyphicon-trash"></span>
										确定删除
									</h4>
								</div>
								<div class="modal-body">你确定要删除这行记录吗？</div>
								<div class="modal-footer">
									<a href="__URL__/del/id/{$v.id}"
										class="dctsk btn btn-sm btn-primary">确定</a>
									<button class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
								</div>
							</div>
						</div>
					</div>
				</td>
			</tr>
			</volist>
		</table>
	</div>
</div>
<div class="text-center">{$page}</div>
<div id="dctsk" class="modal">
	<div class="modal-dialog" style="width: 350px">
		<div class="modal-content">
			<div class="modal-header">
				<button class="close" data-dismiss="modal">&times;</button>
				<h4 class="modal-title">
					<span class="	glyphicon glyphicon-download-alt"></span>
					确定导出
				</h4>
			</div>
			<div class="modal-body">你确定要导出吗？</div>
			<div class="modal-footer">
				<a href="__URL__/outxls" class="btn btn-sm btn-primary">确定</a>
				<button class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
			</div>
		</div>
	</div>
</div>
</block>